const router = [
    {
        path: '/',
        name: 'main',
        // component: main,
        component(resolve) {
            require.ensure(['../components/main.vue'], () => {
                resolve(require('../components/main.vue'))
            })
        },
    },
    {
        path: '/income',
        name: 'income',
        // component: Income,
        component(resolve) {
            require.ensure(['../components/income.vue'], () => {
                resolve(require('../components/income.vue'))
            })
        }
    },
    {
        path: '/income/basic',
        name: 'income_basic',
        // component: IncomeBasic,
        component(resolve) {
            require.ensure(['../components/income_basic.vue'], () => {
                resolve(require('../components/income_basic.vue'))
            })
        }
    },
    {
        path: '/income/shop',
        name: 'income_shop',
        // component: IncomeShop,
        component(resolve) {
            require.ensure(['../components/income_shop.vue'], () => {
                resolve(require('../components/income_shop.vue'))
            })
        }
    },
    {
        path: '/income/bonus',
        name: 'income_bonus',
        // component: IncomeBonus,
        component(resolve) {
            require.ensure(['../components/income_bonus.vue'], () => {
                resolve(require('../components/income_bonus.vue'))
            })
        }
    },
    {
        path: '/income/business',
        name: 'income_business',
        // component: IncomeBusiness,
        component(resolve) {
            require.ensure(['../components/income_business.vue'], () => {
                resolve(require('../components/income_business.vue'))
            })
        }
    },
    {
        path: '/income/holders',
        name: 'income_shareholders',
        // component: IncomeShare,
        component(resolve) {
            require.ensure(['../components/income_shareholders.vue'], () => {
                resolve(require('../components/income_shareholders.vue'))
            })
        }
    },
    {
        path: '/income/staff',
        name: 'income_staff',
        // component: IncomeStaff,
        component(resolve) {
            require.ensure(['../components/income_staff.vue'], () => {
                resolve(require('../components/income_staff.vue'))
            })
        }
    },
    {
        path: '/income/total',
        name: 'income_total',
        // component: IncomeTotal,
        component(resolve) {
            require.ensure(['../components/income_total.vue'], () => {
                resolve(require('../components/income_total.vue'))
            })
        }
    },
    {
        path: '/message',
        name: 'message',
        // component: Msg,
        component(resolve) {
            require.ensure(['../components/message.vue'], () => {
                resolve(require('../components/message.vue'))
            })
        }
    },
    {
        path: '/user',
        name: 'user',
        // component: user,
        component(resolve) {
            require.ensure(['../components/user.vue'], () => {
                resolve(require('../components/user.vue'))
            })
        }
    },
    {
        path: '/user/reset',
        name: 'resetPasswrod',
        // component: resetPasswrod,
        component(resolve) {
            require.ensure(['../components/reset_password.vue'], () => {
                resolve(require('../components/reset_password.vue'))
            })
        }
    },
    {
        path: '/user/edit',
        name: 'userEdit',
        // component: userEdit,
        component(resolve) {
            require.ensure(['../components/user_edit.vue'], () => {
                resolve(require('../components/user_edit.vue'))
            })
        }
    },
    {
        path: "/login",
        name: "login",
        // component: Login,
         component(resolve) {
            require.ensure(['../components/login.vue'], () => {
                resolve(require('../components/login.vue'))
            })
        }
    }
];
export default router;